﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace u盘和硬盘
{
    class Computer
    {
        private string _brand;

        private IUSB usb1;
        private IUSB usb2;

        public string Brand { get => _brand; set => _brand = value; }
        internal IUSB Usb1 { get => usb1; set => usb1 = value; }
        internal IUSB Usb2 { get => usb2; set => usb2 = value; }

        public void Start()
        {
            Console.WriteLine("{0}开机。。。",this.Brand);
            Console.WriteLine("deng~deng~deng~...");
        }
        public void USB1()
        {
            this.Usb1.Read();
            this.Usb1.Write();
        }

        public void USB2()
        {
            this.Usb2.Read();
            this.Usb2.Write();
        }
        public void End()
        {
            Console.WriteLine("{0}关机。。。", this.Brand);
            Console.WriteLine("beeeeeeeeeeeeeee");
        }
    }
}
